//
//  BridgeConvert.h
//  CocoaAsyncSocket
//
//  Created by admin on 2019/11/27.
//

#import <Foundation/Foundation.h>
#import "java/util/ArrayList.h"
#import "java/lang/Long.h"
#import "java/util/Map.h"
#import "java/util/Set.h"
#import "java/util/HashMap.h"

NS_ASSUME_NONNULL_BEGIN

@interface BridgeConvert : NSObject

+ (id)convert:(id)from to:(Class)toClass;
+ (NSArray<id>*)convertList:(NSArray<id>*)fromList to:(Class)toClass;
+ (NSArray*)list2nsArr:(id<JavaUtilList>)list to:(Class)toClass;
+ (id<JavaUtilList>)nsArray2List:(NSArray*)nsarray to:(IOSClass*)toClass;
+ (NSArray*)list2nsArr:(id<JavaUtilList>)list;
+ (id<JavaUtilList>)nsArray2List:(NSArray*)nsarray;
+ (NSDictionary<NSString*, id>*)map2NSDict:(id<JavaUtilMap>)map;
+ (id<JavaUtilMap>)nsDict2map:(NSDictionary<NSString*, id>*)nsdict;
+ (id<JavaUtilMap>)nsDict2mapInLongKey:(NSDictionary<NSNumber*, id>*)nsdict;
+ (NSArray<id>*)iosArr2nsArr:(IOSObjectArray*)iosarr;
+ (id)sxs2nativeBean:(id)from to:(Class)toClass;
+ (id)native2nsxsBean:(id)from to:(IOSClass*)toClass;

@end

NS_ASSUME_NONNULL_END
